<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--引入外部文件-->
    <script src="./node_modules/vue/dist/vue.js" ></script>
</head>

<body>
<div id="app">
    <input type="text" v-model="name">
    <br>
    <input type="button" value="点我" v-on:click="add">
</div>
</body>

<script>

    var vm = new Vue({
        el:"#app",
        data:{
            name:"刘德华"
        }
    })

</script>

</html>